using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN HinhThucKyLuatService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: HinhThucKyLuatService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class HinhThucKyLuatService : IHinhThucKyLuatService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: HinhThucKyLuat_ID</para>
		/// <para>Output: HinhThucKyLuatEntity</para>
		///</summary>
		public HinhThucKyLuatEntity SelectOne(int HinhThucKyLuat_ID){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.SelectOne(HinhThucKyLuat_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaHinhThucKyLuat</para>
		/// <para>Input: MaHinhThucKyLuat</para>
		/// <para>Output: HinhThucKyLuatEntity</para>
		///</summary>
		public HinhThucKyLuatEntity SelectOneByMaHinhThucKyLuat(string MaHinhThucKyLuat){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.SelectOneByMaHinhThucKyLuat(MaHinhThucKyLuat);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HinhThucKyLuatEntity</para>
		///</summary>
		public List<HinhThucKyLuatEntity> SelectAll(){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of HinhThucKyLuatEntity</para>
		///</summary>
		public List<HinhThucKyLuatEntity> SelectAllFilter(string strFilter){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HinhThucKyLuatEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(HinhThucKyLuatEntity o){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: HinhThucKyLuatEntity</para>
		/// <para>Output: HinhThucKyLuatEntity</para>
		///</summary>
		public HinhThucKyLuatEntity SaveRet(HinhThucKyLuatEntity o){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of HinhThucKyLuatEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<HinhThucKyLuatEntity> list){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of HinhThucKyLuatEntity</para>
		/// <para>Output: List of HinhThucKyLuatEntity</para>
		///</summary>
		public List<HinhThucKyLuatEntity> SaveListRet(List<HinhThucKyLuatEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: HinhThucKyLuatEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(HinhThucKyLuatEntity o){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of HinhThucKyLuatEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<HinhThucKyLuatEntity> list){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaHinhThucKyLuat</para>
		/// <para>Input: NewMaHinhThucKyLuat,HinhThucKyLuat_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaHinhThucKyLuat(string NewMaHinhThucKyLuat,int HinhThucKyLuat_ID){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.UpdateMaHinhThucKyLuat(NewMaHinhThucKyLuat,HinhThucKyLuat_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenHinhThucKyLuat</para>
		/// <para>Input: NewTenHinhThucKyLuat,HinhThucKyLuat_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenHinhThucKyLuat(string NewTenHinhThucKyLuat,int HinhThucKyLuat_ID){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.UpdateTenHinhThucKyLuat(NewTenHinhThucKyLuat,HinhThucKyLuat_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaHinhThucKyLuat</para>
		/// <para>Input: NewMoTaHinhThucKyLuat,HinhThucKyLuat_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaHinhThucKyLuat(string NewMoTaHinhThucKyLuat,int HinhThucKyLuat_ID){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.UpdateMoTaHinhThucKyLuat(NewMoTaHinhThucKyLuat,HinhThucKyLuat_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: HinhThucKyLuatEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(HinhThucKyLuatEntity o){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: HinhThucKyLuat_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int HinhThucKyLuat_ID){
			HinhThucKyLuatDAO dao = new HinhThucKyLuatDAO();
			return dao.DeleteByID(HinhThucKyLuat_ID);
		}
		#endregion

		#region Select,delete by HinhThucKyLuat_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END HinhThucKyLuatWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

